|
|
|
|
|
|
|
Learn to use the DateTimePicker control |
|
|
|
|
|
|
|
|
See how the MonthView control works |
|
|
|
|
|
|
|
|
Understand the usage of the Progress bar |
|
|
|
|
|
|
|
|
Learn to use the Slider control |
|
|
|
|
|
|
|
|
See where to use the UpDown control |
|
|
|
|
|
|
|
|
Break up your forms using the TabStrip control |
|
|
|
|
|
|
|
|
Learn the differences between the TabStrip and the SSTab control |
|
|
|
|
|
|
|
|
Sample Project Files: \Chapter31\ControlsPart2.vbp |
|
|
|
|
|
|
|
|
Retrieving a date from a user is something almost every application needs to perform. Of course, your application will need to be able to verify that the date is correct. Also, what if the user needs to input a future date? For this, some sort of pop-up calendar would be a great idea for a Windows application. However, who wants to program something like this? Well, the folks at Microsoft have provided this for us in the DateTimePicker control. |
|
|
|
|
|
|
|
|
The DateTimePicker control has many different formats and styles you can use to input and display the date. In this section, youll learn about the different formats you can apply to the DateTimePicker control. |
|
|
|
|
|
|
|
|
The DateTimePicker looks like a combo box with the Style property set to 0 (see Figure 31.1). You can type a date directly into the text portion of this control. When you click the down-arrow button to the right of the text, youll see a drop-down calendar appear just below the text from which you can select a date. When you click any date in the drop-down calendar, that date will appear in the text portion of the DateTimePicker control. |
|
|
|
|
|
|
|
|
Examples Filename: DateTimePicker.frm |
|
|
|
|
|